﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Admin.Master" AutoEventWireup="true" CodeBehind="SSSChartTable.aspx.cs" Inherits="Legazpi.Payroll.Web.Admin.SSSChartTable" %>
<asp:Content ID="Content3" ContentPlaceHolderID="leftContent" runat="server">
    <div class="grid_9">                                    
        <%if(IsSuccess) {%>
            <span class="notification n-success"><%=NotifyText %></span>                                                
        <%} %>           
    </div>   
    <div class="grid_3">                                
        <div class="module">
                <h2><span>New Record Entry</span></h2>
                        
                <div class="module-body">
                        
                    <p>
                        <label>Low Range:</label>
                        <asp:TextBox ID="LowRangeTxt" runat="server" CssClass="input-long"></asp:TextBox>
                    </p>
                    <p>
                        <label>High Range:</label>
                        <asp:TextBox ID="HighRangeTxt" runat="server" CssClass="input-long"></asp:TextBox>
                    </p>
                    <p>
                        <label>ER:</label>
                        <asp:TextBox ID="ERTxt" runat="server" CssClass="input-long"></asp:TextBox>
                    </p>
                    <p>
                        <label>EE:</label>
                        <asp:TextBox ID="EETxt" runat="server" CssClass="input-long"></asp:TextBox>
                    </p>
                    <p>
                        <label>Base:</label>
                        <asp:TextBox ID="BaseTxt" runat="server" CssClass="input-long"></asp:TextBox>
                    </p>
                    <p>
                        <label>Total:</label>
                        <asp:TextBox ID="TotalTxt" runat="server" CssClass="input-long"></asp:TextBox>
                    </p>
                    <fieldset>
                        <asp:Button id="AddNewBtn" runat="server" Text="Submit" CssClass="submit-green" 
                            onclick="AddNewBtn_Click" />                                                                                                            
                    </fieldset>
                        
                        
                </div> <!-- End .module-body -->
        </div> <!-- End .module -->
        <div style="clear:both;"></div>
    </div>
    <div class="grid_7">      
   
            <div class="module">
                    <h2><span>SSS Table</span></h2>
                     
                    <div class="module-body">                                                         
                    <asp:Repeater ID="repeater" runat="server" OnItemCommand="repeater_ItemCommand">
                    <HeaderTemplate>
                        <table width="100%" border="0" class="tablesorter">
                            <thead>                                        
                                <th>Id</th>
                                <th>Start Range</th>
                                <th>End Range</th>
                                <th>ER</th>
                                <th>EE</th>
                                <th>Base</th>
                                <th>Total</th>
                                <th width="15%"></th>
                            </thead>
                            <tbody>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr class="odd">                                    
                            <td><asp:TextBox ID="IdTxtItem" runat="server" CssClass="input-medium" Text=<%# Eval("Id")%> ReadOnly="true"></asp:TextBox></td>                                        
                            <td><asp:TextBox ID="LowTxtItem" runat="server" CssClass="input-medium" Text=<%# Eval("StartRange")%>></asp:TextBox></td>                                    
                            <td><asp:TextBox ID="HighTxtItem" runat="server" CssClass="input-medium" Text=<%# Eval("EndRange")%>></asp:TextBox></td>                                    
                            <td><asp:TextBox ID="ERTxtItem" runat="server" CssClass="input-medium" Text=<%# Eval("Er")%>></asp:TextBox></td>                                    
                            <td><asp:TextBox ID="EETxtItem" runat="server" CssClass="input-medium" Text=<%# Eval("Ee")%>></asp:TextBox></td>
                            <td><asp:TextBox ID="BaseTxtItem" runat="server" CssClass="input-medium" Text=<%# Eval("Base")%>></asp:TextBox></td>
                            <td><asp:TextBox ID="TotalTxtItem" runat="server" CssClass="input-medium" Text=<%# Eval("Total")%>></asp:TextBox></td>
                            <td>                                        
                                <asp:ImageButton ID="SaveLinkBtn" runat="server" ImageUrl="/images/save.png" Width="16" Height="16" AlternateText="save" CommandName="save" CommandArgument=<%# Eval("Id")%> OnClientClick="return confirm('Confirm Save Changes to Record?');" />
                                <asp:ImageButton ID="DeleteLinkBtn" runat="server" ImageUrl="/images/bin.gif" Width="16" Height="16" AlternateText="delete" CommandName="delete"  CommandArgument=<%# Eval("Id")%> OnClientClick="return confirm('Confirm Delete?');" />                                        
                            </td>
                        </tr>                            
                    </ItemTemplate>
                    <AlternatingItemTemplate>
                        <tr class="even">                                    
                            <td><asp:TextBox ID="IdTxtItem" runat="server" CssClass="input-medium" Text=<%# Eval("Id")%> ReadOnly="true"></asp:TextBox></td>                                        
                            <td><asp:TextBox ID="LowTxtItem" runat="server" CssClass="input-medium" Text=<%# Eval("StartRange")%>></asp:TextBox></td>                                    
                            <td><asp:TextBox ID="HighTxtItem" runat="server" CssClass="input-medium" Text=<%# Eval("EndRange")%>></asp:TextBox></td>                                    
                            <td><asp:TextBox ID="ERTxtItem" runat="server" CssClass="input-medium" Text=<%# Eval("Er")%>></asp:TextBox></td>                                    
                            <td><asp:TextBox ID="EETxtItem" runat="server" CssClass="input-medium" Text=<%# Eval("Ee")%>></asp:TextBox></td>
                            <td><asp:TextBox ID="BaseTxtItem" runat="server" CssClass="input-medium" Text=<%# Eval("Base")%>></asp:TextBox></td>
                            <td><asp:TextBox ID="TotalTxtItem" runat="server" CssClass="input-medium" Text=<%# Eval("Total")%>></asp:TextBox></td>
                            <td>                                        
                                <asp:ImageButton ID="SaveLinkBtn" runat="server" ImageUrl="/images/save.png" Width="16" Height="16" AlternateText="save" CommandName="save" CommandArgument=<%# Eval("Id")%> OnClientClick="return confirm('Confirm Save Changes to Record?');" />
                                <asp:ImageButton ID="DeleteLinkBtn" runat="server" ImageUrl="/images/bin.gif" Width="16" Height="16" AlternateText="delete" CommandName="delete"  CommandArgument=<%# Eval("Id")%> OnClientClick="return confirm('Confirm Delete?');" />                                        
                            </td>
                        </tr>                            
                    </AlternatingItemTemplate>
                    <FooterTemplate>
                            </tbody>
                        </table>
                    </FooterTemplate>
                    </asp:Repeater>                            
                                                   
                    </div> <!-- End .module-body -->

            </div>  <!-- End .module -->        		   
                                                            
    </div>
</asp:Content>